<div class="sub_pannel">
  <div class="content">
    <div class="sub_tabs clearfix">
      <ul>
        <li>
          <%= link_to '学习的课程', user_path(@current_user) %>
        </li>
        <li class="selected_tab">
          <%= link_to '创建的课程'%>
        </li>
        <li>
          <%= link_to '收藏的课程', favorates_user_path(@current_user) %>
        </li>
        <li>
          <%=link_to "创建新课程",categories_path,:class=>"new_course"%>
        </li>
      </ul>
    </div>
    <ul class="course_info">
      <%unless @my_courses.empty? %>
        <%= render :partial=>"user_course" , :collection=>@my_courses%>
      <%else%>
      <div id="no_content">没有课程. 点击右侧按钮创建你的课程.</div>
      <%end%>
    </ul>
  </div>
</div>